package uit.server.model;

import java.util.List;

import com.esri.aims.mtier.model.envelope.Envelope;

public class RequestMapObject {
	
	
	public static final int DO_PAN_ACTION = 0;
	public static final int DO_REFRESH_ACTION = 1;
	public static final int DO_ZOOM_ENVEOPE = 2;
	public static final int DO_ZOOM_LEVEL = 3;
	public static final int DO_ZOOM_SELECTION = 4;
	public static final int DO_ZOOM_FULL_EXTENT = 5;
	
	public static final int DO_PAN_MOVE = 6;
	
	public static final int DO_SCALE_FACTOR = 7;
	
	private int action = -1;
	
	private RequestMapObject(){}
	
	public RequestMapObject(int action){
		this.action = action;
	}
	
	public RequestMapObject(String servicename , int action){
		this.servicename = servicename;
		this.action = action;
	}
	private String servicename;
	private long width;
	private long height;
	
	private List<LayerDef> visibleLayerList = null;
	private int selectionActiveLayer = 0;
	private String whereExpression = "";
	private boolean zoomSelection = false;
	private boolean highlightSelection = false;
	private Envelope zoomEnvelope;
	private long level;
	private long x = 0;
	private long y = 0;
	
	
	private long direction;
	
	
	public long getX() {
		return x;
	}

	public void setX(long x) {
		this.x = x;
	}

	public long getY() {
		return y;
	}

	public void setY(long y) {
		this.y = y;
	}

	public List<LayerDef> getVisibleLayerList() {
		return visibleLayerList;
	}
	public void setVisibleLayerList(List<LayerDef> visibleLayerList) {
		this.visibleLayerList = visibleLayerList;
	}
	public int getSelectionActiveLayer() {
		return selectionActiveLayer;
	}
	public void setSelectionActiveLayer(int selectionActiveLayer) {
		this.selectionActiveLayer = selectionActiveLayer;
	}
	public String getWhereExpression() {
		return whereExpression;
	}
	public void setWhereExpression(String whereExpression) {
		this.whereExpression = whereExpression;
	}
	public boolean isZoomSelection() {
		return zoomSelection;
	}
	public void setZoomSelection(boolean zoomSelection) {
		this.zoomSelection = zoomSelection;
	}
	public boolean isHighlightSelection() {
		return highlightSelection;
	}
	public void setHighlightSelection(boolean highlightSelection) {
		this.highlightSelection = highlightSelection;
	}
	public int getAction() {
		return action;
	}
	public void setAction(int action) {
		this.action = action;
	}

	public Envelope getZoomEnvelope() {
		return zoomEnvelope;
	}

	public void setZoomEnvelope(Envelope zoomEnvelope) {
		this.zoomEnvelope = zoomEnvelope;
	}

	public long getLevel() {
		return level;
	}

	public void setLevel(long level) {
		this.level = level;
	}

	public long getWidth() {
		return width;
	}

	public void setWidth(long width) {
		this.width = width;
	}

	public long getHeight() {
		return height;
	}

	public void setHeight(long height) {
		this.height = height;
	}

	public String getServicename() {
		return servicename;
	}

	public void setServicename(String servicename) {
		this.servicename = servicename;
	}

	public long getDirection() {
		return direction;
	}

	public void setDirection(long direction) {
		this.direction = direction;
	}
	
}
